
const { QueryTypes } = require('sequelize');
const {sequelize} = require('../models/characteristics') 
exports.getCharacteristics = async function(){
    const result = await sequelize.query("SELECT * FROM `characteristic`", { type: QueryTypes.SELECT });
    console.log(result);
    if(result){
        return {
            data: {},
            meta: {
                msg: '获取数据成功',
                status: '200'
            }
        }
    }else{
        return {
            data: {},
            meta: {
                msg: '获取数据失败',
                status: '400'
            }
        }
    }
}